package com.itcast.demo12;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

public class Demo01 {
    public static void main(String[] args) throws IOException {
        Properties properties= new Properties();
        FileReader file = new FileReader("D:\\IDEA\\Basic28\\day24\\src\\com\\Itheima\\demo12\\ee.properties");
        properties.load(file);
        file.close();
        String name = properties.getProperty("name");
        String age = properties.getProperty("age");
         Student st= new Student(name,age);
        FileWriter out = new FileWriter("D:\\软件\\桌面\\aa.txt");
        properties.store(out,null);
        out.close();
    }
}
